#


# def person(name, age, **kw):
#     print('名字:',name,'年龄:',age,'其他情况:', kw)
#
#
# person("cendy", 29, city="杭州", pet="喵喵")


def person(name, age, **kw):
    kw.update({"height":"175"})
    print('名字:', name, '年龄:', age, '其他情况:', kw)


other_info = {"pet": "喵喵","sex":"男"}
person("cendy", 29, city="杭州", **other_info)
print(other_info)

# 注意点：参数定义的顺序必须是：必选参数、默认参数、可变参数、命名关键字参数和关键字参数